<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>InSTEDD | BioForms Offline Client (v1.4)</title>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/forms-client.js"></script>
    <script type="text/javascript" src="js/forms-calculated-values.js"></script>
</head>
<body onload="LoadHome()">
   <script type="text/javascript">
        var fileSystemObject = new ActiveXObject("Scripting.FileSystemObject");
        var sentFolder = getSentFolder(fileSystemObject);
        var outboxFolder = getOutboxFolder(fileSystemObject);
        
        function LoadHome()
        {
            RefreshOuboxAndSentLabels();
        }
        
        function RefreshOuboxAndSentLabels()
        {
            document.getElementById('OutboxLink').innerHTML = 'Outbox(' + outboxFolder.Files.Count + ')';
            document.getElementById('SentLink').innerHTML = 'Sent(' + sentFolder.Files.Count + ')';            
        }
        
        function ShowFrame(src)
        {
            document.getElementById('contentFrame').src = src;
        }
    </script>
    <a id="topAnchor" href="#"><img src="img/geoFormsLogo.gif" style="border:0px" alt="InSTEDD Logo" /></a>
    <div>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td valign="top">
                <br />
                <br />
                <a class="link" href="#" onclick="ShowFrame('Survey.htm')">New Survey</a><br />
                <a class="link" id="OutboxLink" href="#" onclick="ShowFrame('Outbox.htm')">Outbox(N)</a><br />
                <a class="link" id="SentLink" href="#" onclick="ShowFrame('Sent.htm')">Sent(N)</a>
                <br />
                <br />
            </td>
            <td>
                <iframe src="Survey.htm" id="contentFrame" height="2200" width="800" frameborder="0" scrolling="auto" application="yes">
                </iframe>            
            </td>
        </tr>
    </table>         
    </div>        
</body>
</html>
